<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="include/import.jsp"%>
<!DOCTYPE HTML >
<html>
<head>
<meta charset="UTF-8">
<title>String Subway</title>
</head>
<body>
	<div>
		<p>标签:</p>
		<p>
			<c:forEach items="${tags }" var="tag">
				<a href="${ctx }/home?tag=${tag}&m=get" id="${tag }">${tag }</a>
			</c:forEach>
		</p>
	</div>
	<div>
		<form id="postForm" method="post" action="${ctx }/home" >
			标签:<input type="text" name="tags" id="tags" /><br/>
			描述:<input type="text" name="description"/><br/>
			内容:<input  type="text" name="content"/><br/>
			<input type="submit" name="save" value="保存"/>
		</form>
	</div>
	<ul>
		<c:forEach items="${posts }" var="post">
			<li>
				<h2>
					<a href="${post.content}" id="${post.postKey }" target="_bank">${post.description }</a>
				</h2>
				<p>
					<font size="2"> 标签: <c:forEach items="${post.tags }"
							var="tag">
							<a href="${ctx }/home?tag=${tag}&m=get" id="${tag }">${tag }</a>
						</c:forEach>
					</font>
				</p>
			</li>
		</c:forEach>
	</ul>
</body>
</html>
